
import studentApi from '../api/student/student.js'
import useApi from '../api/user/user.js'

function Student(){

    let sendAxios1= async()=>{

       let result =await studentApi.getallstudents();

       console.log("4001==>>",result)

    }

let sendAxios2= async()=>{

  let result = await  useApi.getUsers();
  console.log("4002==>>",result)

}       


    return(
        <>
        <button onClick={sendAxios1}>点击发送axios到4001</button>
        <button onClick={sendAxios2}>点击发送axios到4002</button>
        </>
        )

}

export default Student